import service from "@/service/http.interceptor";

/**
 * 分页获取评论
 */
export const getOrderCommentPage = (params) => {
	return service.request({
		method: 'get',
		url: '/shop_order/comment/c/getOrderCommentPage',
		params,
		custom: {
			loading: true
		}
	})
}

/**
 * 用户订单评论
 */
export const addOrderComment = (data) => {
	return service.request({
		method: 'post',
		url: '/shop_order/comment/c/add',
		data,
		custom: {
			loading: true
		}
	})
}